package EveryDayPractice;

public class Practice32 {
     public static void main(String[] args) {
         int a=0x12345678;
        int b= jiaohuan(a,4,7);
        System.out.println(b);
     }
     public static int jiaohuan(int a,int b,int c) {
         int i = a >> 4;
        int j = ((1 << (c - b+ 1)) - 1);
        return i&j;
     }
}
